package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author hc
 * @date 2021/12/24 16:15
 */

/**
 * 追加评论
 */
@ApiModel(value = "com-hc-domain-Recomment")
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_recomment")
public class Recomment implements Serializable {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Long id;

    /**
     * 图片，最多5张 [aa.jpg,bb.jpg,cc.jpg]
     */
    @TableField(value = "pics")
    @ApiModelProperty(value = "图片，最多5张 [aa.jpg,bb.jpg,cc.jpg]")
    private String pics;

    /**
     * 评论内容
     */
    @TableField(value = "content")
    @ApiModelProperty(value = "评论内容")
    private String content;

    /**
     * 第一次评论编号
     */
    @TableField(value = "comment_id")
    @ApiModelProperty(value = "第一次评论编号")
    private Long commentId;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
     * 评论时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "评论时间")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;
}